updating tests with mock window object
adjustment to unit test
Merge pull request #462 from Wikia/history-api-js-tests

History api js tests