added integration tests.