Add tests for collision detection