Testing collision detection.