added FunctionUtilTest
remove unnecessary if check