test fixes
correctly set the attribute when adding background spans