You don't really want to give people an incentive for nonpayment.
> do means testing
Bankruptcy already does that. But what are your "means" the day you graduate from college and haven't yet found a job, or temporarily take a low-paying one on purpose to meet the eligibility requirements?
You would need something like, deferred payments while you're unemployed but if you subsequently find a job then you have to pay, instead of one-time permanently discharging the loans. Except that's how it already works.