Add tests for git check-ref-format