Add some test cases for function calls