test for hash and updated test for subitem