test cases for function call