SONARJAVA-111 add unit tests