[PATCH v2 10/11] test_driver: Implement test driver for metadata APIs