[#1747] Make allow html test consistent with not allow test