Added rectangle testing framework.