implementing handle_test_message