Improve intersection tests.