1. Measure the voltage at the door lock timer unit terminals (other than terminal 1E and 2W) as indicated below.
2. Disconnect the negative battery cable.
3. Disconnect the door lock timer unit connector and inspect for continuity between terminal 1E or 2W and the bracket.
4. Inspect for continuity at terminal 1E and 2W as indicated below.
5. If the parts and wiring harnesses are okay but the system still does not work properly, perform the troubleshooting.
Terminal voltage list (Reference)
*1 : Vehicles with double locking system
*2 : Vehicles with theft-deterrent system
Mazda 6 Service Manual: Generator removal/installation
Warning
When the battery cables are connected, touching the vehicle body with
generator terminal B will generate sparks. This can cause personal injury, fire,
and damage to the electrical components. Always disconnect the battery negative
cables before performing the following operation.
...
Mazda 6 Service Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...