improving tests according to Dominic's notes
fixing bug in test share-registry-import-document.html