added MessageHandler to TestConnection