added c wrapper and test case