LRSUPPORT-4697 Fix and refactor broken integration test

CMISQueryBuilderTest.testFolder() was breaking when executed after RepositoryTest.