test suite fix

set exit code on a failure mode previously ignored
Make regression tests a bit more thorough