Test second digit and refactor digit calculations to their own methods.