Abstract out hand hasher tests