Fix silent fail if statement, and improve readability of test output.