Standardize the test output.
Return an error code when the tests fail.