implemented integration test