Create the test for the executeCommand method