AHR Motor test update

Revised code