Add tests for command executor.