Fix test for #2464 so it produces valid html