extract purge into a method to use it in tearDown

extracted the part from loadFixtures that does the purging into a
standalone method to be able to purge the repository after a passed
test in tearDown.