If you fail the means test, you still have the option to apply for Chapter 13 bankruptcy as opposed to Chapter 7 bankruptcy. Chapter 13 bankruptcy can still be very helpful in getting your finances back on track, it just means that you have enough disposable income to make the court think you can pay your debt back if given extra time. They would not deny Chapter 7 bankruptcy unless they believed you had the means to make your payments.