Added tests for CommandHandler