SONAR-4053 improve stability of unit test