converted pwmtest to use new motor class