add tests for duplicate email and delete transactional emails