Add language test case for function pointer marshalling