Added test which should fix ios popstate bug