add tests to sonar