refreshing cookie, auto testrun on window focus