C++ code but C interface
Adjust the test case