added tests for virtual machine