Add missing tests in sonar-process module
Fix some quality flaws