ad hoc function definition testing