added test of function variable