add a test for exit codes