Added some tests for command handler.