SONAR-4908 Add tests