added a test case for upgrade database from v2 (additionally to existing v1);