Door Lock Actuator
1. Disconnect the front door lock actuator connector.
2. Apply battery positive voltage to the front door lock actuator terminals and inspect the operation of the front door lock actuator.

With double locking system

Without double locking system

Door Lock-link Switch (With Theft-deterrent System
1. Disconnect the front door lock actuator connector.
2. Inspect for continuity between the door lock-link switch terminals using an ohmmeter.


Front door lock actuator inspection
Trunk lid lock actuator inspectionMazda 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: Trunk Lid
WARNING
Never allow a person to ride in the trunk: Allowing a person to ride
in the trunk is dangerous. The person in the trunk could be seriously injured or
killed during sudden braking or a collision.
Do not drive with the trunk lid open: Exhaust gas in the cabin of a vehicle
is dangerous. ...