testing tracing of message_complete function