added test for function call