Support optional method arg for .hasDelegate and test