rev-parse test: use test_must_fail, not "if <command>; then false; fi"