implemented integration tests