[Tests] Added a test for complex attributed string rendering