1. Disconnect the negative battery cable.
2. Remove the headlight cleaner switch. (See HEADLIGHT CLEANER SWITCH REMOVAL/INSTALLATION)
3. Inspect for continuity between the headlight cleaner switch terminals using an ohmmeter.


Headlight cleaner switch removal/installationMazda 6 Service Manual: Illuminated Entry System
When the illuminated entry system operates, the overhead lights, the courtesy
lights, and an ambient light* turn on in the following conditions:
The driver's door is unlocked after the ignition is switched OFF.
The ignition is switched OFF with all doors closed.
NOTE
(Overhead lights) ...
Mazda 6 Service Manual: Rear Cross Traffic Alert (RCTA) (Some models)
The Rear Cross Traffic Alert (RCTA) system is designed to assist the driver in
checking the area to the rear of the vehicle on both sides while the vehicle is
reversing by alerting the driver to the presence of vehicles approaching the rear
of the vehicle.
The Rear Cross Traffic Alert (RCTA) ...