test: script: add runtime test for str()