Testing text constraints