Added a test for collision detection.