fix tests so failures report the right line number

This has been bugging me for a while. This change is still pretty readable, but puts the `must` operator in the test itself, so SBT can report that line number, rather than the same line number in the helper function no matter which test failed, as it used to.