Run UIWebView initialization from main thread, some tests added