Add test case for non-zero exit code