Added test code to check hm_delete_all_nodes API.