Added unit test for rect.
Added unit test for rect.

bvssvni/graphics,aepsil0n/graphics,echochamber/graphics,Vinatorul/graphics,mitchmindtree/graphics,andrewcsmith/graphics,stjahns/graphics,PistonDevelopers/graphics