Test for swiftmailer issue 534

A working test for swiftmailer/swiftmailer#534