backport resync_with_write_load js test