Added integration tests for updating emails