error handling in sparqlService and tests