Exit with error code if tests do not pass.