Fix Command tests
Start to implement new tests; re-enable them in Travis and try to make AppVeyor work