Test anonymous function.