Merge pull request #564 from leider/master

tests for mail sender API