Test for mask detector