Test cases for StyledString