test for anonymous function.