added sonarTest funciton to tests