Fix for issue #300

This should properly fix the barcode issue.
Also include a test to check if check digit is really included in the resulting page!