add variable param test to function