Added test for leaks, in text()