can test hash function