added integration tests;