Fixing bats tests to be less specific about exit code