Fix behavior on variants without conditions
Unexport resetAndLoadFile from registry tests