Add unit tests for interface with C