SHA update, and test of TypeError in a random test