Refinements to text processing arising from testing