Fixed some more bugs within the sensor agent and mockPopUp and the relative unit test

The conveyor turnonOff function was used incorrectly and had to be fixed
up a little.