[BUGFIX] Less persistence side effects in functional tests
Previously, the persistence manager was only teared down after a whole
test case ran through. This change makes sure that this clean up happens
after each individual test to ensure that data generated by previous
tests are gone when the next test is run.