Fixed user_defined_function test for cython