Make test work if gadget are used for ERP5 UI.