Testing border collision detection.