remove replaceState from test