[!!!][BUGFIX] Make FunctionalTestCase usable for persistence tests
This change makes persistence tests usable with Doctrine (again).
It changes some important things: * enableTestablePersistence() has been removed * set the static property $testablePersistenceEnabled instead * persistence is now setup and torn down per testcase, not per test
See the adjusted tests for examples of needed adjustments.