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.
(cherry picked from commit d19f43e52a5e4905ad2d8963ded4935bbddf5418)