[test] refactored html normalization