Refactor and test CallExpr and Function.