Add test for named function comparison