testing a motor