tests/rdfquery.cpp: restructure the tests so they don't fail when languages.rdf changes