Added some tests for the command handler