Hats and caps are not allowed in the test room for both Listening/Reading/Writing and Speaking tests.
However, religious headwear, such as turbans and hijabs, is accepted. No substitute hats, caps, beanies, or any other head coverings other than authentic religious headwear are accepted for religious purposes.