add test api key and fix webview redirection handling