Fix sonar issue and add code coverage

No match.