Add c unit tests