Basic test for persistCachgedDatabase