It's a minimal (internal) test. But yes, this could essentially just test for vertex shaders only as well to avoid the undocumented usage.