Add a series of tests for the NativeFunctionDelegateImpl internals.