(20750) move vm setup/teardown from test steps to lib