Make worker navigation tests more reliable.

Stop depending on timing where possible and depend on events instead.
Don't get confused by load event of about:blank iframe