additional test
call safelength function before invoking splitText -- prevents a very rare split exception with large lengths
context should infer document