tests: better behaviour if focus widget is not set