nit use test.assertEqual here. If persisted was null of '' or undefined then this test would be a false positive.