character styles: added tests and documentation