[BUGFIX] Fix wrong test in method registerProviderExtensionKey

According to the method definition $extensionKey is given as string.
Assuming, the logic is to search an extension key from an array of
extensions, the test must be fixed solving a warning on the FE.