tests/str-length: add test