Fix bug where same document references in a file: URI were being handled incorrectly.
Tweaked
Move a version of the test suite into the repository so that it can be run without internet access