Expand unittest to switch to another message
Doesn't fully reproduce what happens in kmail, but can still be useful as a basis in the future.