Fixed: updated RegistryTestCase::registerDocument to support types and changed test to have unique documentId.