add test case: function pointer