beginEndFunctionTest