Fix command line tests
adjust .gitignore