hashchange test modified