Added unit test for listing virtual machine.