fixes stupid NPE
modify hash tests