tests: adds tests for the FFI with C