Test `getDirection` helper
Test `digit_name` helper
Minor style improvements