Improve error messages in inf-test-text-cleanup