numDigits to work for all integers & updated test