DataSourceDefinition: handle unknown connector

Add a static version of `testConnection` that can be used without
persisting the definition.

Fix the implementation to handle the case where the connector specified
in the definition is not installed in the project using
loopback-workspace.