Update DigitsTest.java

and missing test cases