Unit test for collision sensor.