added test for hash