I think the means test is inapplicable to an involuntary case. The means test is found in 11 U.S.C. § 707(b). The first sentence of paragraph (b)(1) of that section reads:
After notice and a hearing, the court, on its own motion or on a motion by the United States trustee, trustee (or bankruptcy administrator, if any), or any party in interest, may dismiss a case filed by an individual debtor under this chapter whose debts are primarily consumer debts, or, with the debtor's consent, convert such a case to a case under chapter 11 or 13 of this title, if it finds that the granting of relief would be an abuse of the provisions of this chapter.
(Bolding added.) As indicated by the bolded text, the means test applies only to those cases in which the debtor files the chapter 7 petition. But in an involuntary petition, it is the creditors who file the petition, not the debtor. This makes sense since the idea of the means test is to prevent abuse by debtors filing under Chapter 7 to dump their debts when they could pay off the debts (or at least a good portion of them) under a Chapter 13 bankruptcy. When the creditors file an involuntary petition under Chapter 7 or 11, they are not abusing the system; that's the only bankruptcy option available to them.
Thus, it seems to me an involuntary case isn't going to be dismissed because of a failure of the debtor to meet the means test.
The creditors cannot force the spouse, who is not a debtor, to join the involuntary bankruptcy or go after the assets of the non debtor spouse for the debtor's liabilities (unless a fraudulent conveyance argument can be made).