Backport V3 hypervisor plugin unit tests to V2

This patch backport some of the V3 hypervisor plugin unit tests
to V2 unit tests.

Change-Id: Ieeadb66dcd142c1919912703b4e410cfa1aa15f2
Merge "Backport V3 hypervisor plugin unit tests to V2"