Fix some issues with the grouping commands, and greatly expand test coverage
Fix travis config file
Fix broken tests