introduce test code for git import phase

- test a few scenarios to exhibit interesting corner cases
- utilities to perform git operations
- utilities to query and introspect the codeq db