sample and test for persistence of StringBuilder