added integration test.