Cleared out all the ref and const issues for Function::test().