fix tests foyercaptureressourcesmodalctrl