added test for checking collisions