Refactor fragments insertion into the string.
Vary the test to increase code coverage.