cffi callbacks and test updates