completion tests: add tests for the __git_refs() helper function