Added additional check in hash unit test