add unit test for testing edge cases of the `short string optimization`