Add unit test for metadata and adapter

Change-Id: I2d88c07a3c078b25d38e962eb3d0e5baf0b87182
Merge "Add unit test for metadata and adapter" into dev/experimental