fix test to return non-zero exit code on fail