add test for hn.replaceWithJson for hashes; test passes