TESTS: additional TO tests with empty input.
FIX: crashing tests blk-sk39 and str-sk40.
FEAT: minor code factorization.