[c] refactor test_file_node_operate