tests for mail sender API