pmtest: Modify to cycle through power modes