Make pushstate tests work in dist