Add a simple test for the command pattern