added integration testing