added integration test