test for window history