added unit tests for the CommandExecutor