Fixed tests after change to SonarQube.