Remove deprecated `%(test-text)` and `%(test-file)` variables.
Add some adapters that can be used in shell test implementations.
Make fa-under-pty simpler and more robust by using a file object.