Add unit test for ExecuteCommand.