Testing the command handler.