Implemented integration test