added integration tests and removed smtp reuirement