SONARJAVA-335 Fix the unit tests