use assert_idl_attribute to check method existence