LPS-44288 Fix and refactor broken integration test