fix test.c bug. modify trie_add_record function