dealing with errors in sparql queries, and more feature tests