Functional tests see data from previous tests
Data stored by functional tests are only flushed after a whole test case ran through, not after each individual test. This leads to unpredictable side effects.
[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.