fix test C files, because of API change
fix test C files, because of API change