write test for mailers