Added Refresh to BrowserWindow and refactored tests