refactors MimeTest