text clipping; some unitests