More tests for raw text
Corrected returned indexes