Refactor to have tests for unknown command and invalid input