Replace usages of the deprecated TypeTestCase by the new one

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

I'm applying this in 2.3 to make merging branches easier. This is especially needed for 2.7 because of deprecation warnings added in #13060
Well, previously, I don't know (the class was in the same namespace). Now, we can either keep the FQCN or use an aliased use statement. We cannot use a simple use statement because of the conflict with the deprecated class in the same namespace