fix test to check update of `css_class` attribute