junit tests for VS and VM