test_git: add tests for `refspec' argument

Includes a basic test of the clone and update cases.