Test collision detection