Add unittest for CanCallFunc.