New class CommandExecutor created with single test, some refactoring completed to assist with single responsibility principle