Testing collision detection