Add testing case for hash map