Test for scalar custom function