MULE-5301: The MailMessageFactory adds inbound email headers to the outbound scope of the message

Added a test for the previous changes that were not taken into account.