how to test a limit switch