Update test_node_to_dict with type key