returing proper exit code for test results