Added optical encoder test script