configured order emails and added integration tests