Fix some failing command tests
Use same testdatabase as other testcases
Add .gitignore