refactor some specs to not dependet on html attribute order