c2/30 add encodedDigit test to make test easier to understand
c2/31 encodedDigits checks last digit encoded