Test email dao
Refactor integration tests for promises