Fix for removing generated test definitions from the global scope after a repository has been tested.