fix testhash unit tests