Added a reset function to TestRepositories to prevent test pollution between tests