ffi tests