fixes to test #widget inside #deferred