implementation and test for searching with hash results