Add tests for text()