[test][message_handler] Share the context to message_handler

1 job for py3_compatibility in 1 minute and 14 seconds (queued for 8 seconds)