Fixed the test cases,added sonar config