Limit switch unit test.