blackbox tests: method to check specific exit codes