refactor vm analysis test