refactor html tests