Moved testing of CLI to its own test file