Improving webview tests