tests for nedb persistence