Added tests for TextRepresentation