Note that there are currently some bugs in the handling of persistent objects, especially in tests. See