3Motor test code from Ole