swapping order of HTML attributes in test

**This test is very fragile and should probably be refactored to use a real HTML parser**