Add unit test for C-style interfaces