Oh I see....
I think test 6 is not a valid test, input of the last digit is:

 Code:
...
.|.
.|.


You can't make valid numbers of that by just adding segments, because the places where the '|' are are used for '_'

I think it should be:
 Code:
...
..|
..|

or
 Code:
...
|..
|..


Jens, please tell us if this is by design or by mistake \:\)
_________________________
It's better to have scripted and died, then to never have scripted at all