better error handling in the test scaffold.