Added test case for custom functions. #134