Working test for simulating history.back() for pageshow event