t8001: check the exit status of the command being tested