[Patch v6 09/14] test: add database upgrade test from format version 1 to 2