BS-11338 : Sonar : Reduce complexity

- Rewrite some tests to replace old waiting mechanism by the waiting mechanism by event