Fix some randomly failing tests

``test.aria.touch.widgets.dialog.events.DialogAnimationsTestCase`` and ``test.aria.widgets.container.tooltip.TooltipTestCase`` are randomly failing because of timeouts (which are too small).
This pull request replaces the timeouts with calls to ``waitFor``. It partially fixes #725.