fix functions.t test