Test for text position in layout