test without ffi