Added a test for cubic intersection problem