Add class Text and update pastes tests and src