testing for hash func