Add a test for derivePersistFieldJSON