Test if method exists.