Add test for storing data in DB for 007 migration

Change-Id: Iefd73e8ac1899b30555b6b2427720f1fbe62b5c8
Merge "Add test for storing data in DB for 007 migration"