Add test for ApiMethod for cheking redefined parameters