some fixes to the tests to make the the document-mailings work again