added test for collision