adds test for calling a function