Make length check a little more paranoid

Remove trailing crap  from the tests (the hashtype) now that this is
correctly caught.