tests: adds an FFI test with simple callbacks