add tests for "restoring from v3 JSON" (core/history.js)