Fix up some test cases; update rdflib dependency to 4.0.1 and retest clean installation