more unit test fixes for text