Backport v3 config_drive API unittest to v2 API

This patch adds some v3 config_drive API unittest into V2 API to improve
V2 API unittesting.

Change-Id: Idbe85edd44d99cfa05e16faf10d4ca11f367c892
Merge "Backport v3 config_drive API unittest to v2 API"