tests: Port text-test to new test framework

So much simpler this way and the test suite is now back too 100% pass.
5 files changed