make the test pass
refactor code
refactor test
expand the one digit test case to cover all non zeros digits