completion: simplify __gitcomp() test helper