#GH-83 portal.set_registry_record: refactor into multiple tests and add docstrings