Add some tests
Drop strange --git-dir argument, fixes #3
Do not use command-qq in tests