Extend HTML comment test cases to cover restricted mode.