Z3-str interface with tests.