Fix failing test.
SONARXML-19: fix implementation and impacted tests.