basic encoder examples failing

The encoder is attached to the motor i referenced in the link

https://www.openimpulse.com/blog/products-page/25d-gearmotors/jga25-371-dc-gearmotor-encoder-201-rpm-12-v-2/

It is the same motor/encoder used in the instructables example here

The tech page for the encoder on the motor is here

http://repository.sainsmart.com/index.php?share/file&user=bbu_sainsmart&sid=KgPpwOBr

The encoder is attached as in the attached picture
Motor+ and Motor- go to M1 on the adafruit shield