SONARJAVA-385 Add unit tests