fix the MessagCallback in the test app