Test bounds first before doing polygonal testing