Cut to separate both ends of about 12 inches of speaker wire. Use wire with readily identifiable positive/negative leads. Separate one end far enough to reach to both ends of a battery, and twist the strands on each lead.
Use duct tape to attach the negative wire lead to the negative battery end, the positive wire lead to the positive battery end. Or, you can temporarily tape the short plug end of a multimeter black lead to the negative battery end, and likewise attach the red lead to the battery positive end.
Touch the negative side of the home-made tester to a negative speaker lead and the positive side to the positive speaker lead. You should hear a pop or a scratch through a speaker. If you are testing a harness plug, keep touching the negative side and touch other leads until you get a pop.
If you want to test for proper speaker polarity, performing Step 3 as described should make the speaker jump forward. Wrong polarity will make it jump backward. Ask a helper to observe the speaker while you test it.