removing window.name and change tests to detect logged out state