add test to textrect