add tests for StringLeaf