platform independence for test_virt unit tests

Uses mock to avoid direct use of /proc file system
in the unit tests. This makes these tests platform
independent.

Change-Id: I21986681a9a1a6db516957246b71d7fd2055d44b
Merge "platform independence for test_virt unit tests"