Unexport resetAndLoadFile from registry tests