added header text fitting tests