Added unit tests for function and method callbacks in test/FunctionAndMethodCallbackTests.cpp.