User-defined function test passes