SONAR-4069 add unit tests