Implement more text tests, there seems to be a bug in the refcount somewhere