refactor infra vm power control tests