Allow unit tests to run on iOS. (filesystem restriction)
Close DB -> close FileHandles
Detect leaked file handles
Added persistence tests