Added collision test