Updated query-api, fixed imports
Added sonar.exclusions to root pom
Updated path unit tests to include new methods and test some negative cases missed previously