fix for change of API
add test for hash