Test if documents are correct instances.
Make referenced documents instances of those documents.
Tests for referenced documents instances validation.
Don't update all documents when initializing.

Added Document.updateAll to manually trigger rerun on all documents.
Tests for Document.updateAll.