add tests and fix for set string