Add a test for a user-defined function.