added test to collision detection