wrote tests for sparqlQuery