test if exit codes work right