Sonar test with main class refss removed