Implemented limit switch test