OpenJDK tests have failed because of an ordering issue that cannot be
repeated on Oracle JDKs - anonymous nodes are not renamed consistently
when verifying roundtripping of turtle ontologies.

This fix works around the ordering issue in the test. Note that the
difference in roundtripping is semantically irrelevant.