Add text[range] support & unit tests