LRSUPPORT-4697 Fix and refactor broken integration test