See the TESTS W/CODES article and the WIRING DIAGRAMS article. Test switch and circuits as necessary.