Generalize text to env test
Rename file to cases_ex
Add magic encoding

For our friend, Travis