add integration test for email dao