Fix missing connector message + other improvements

- test: isolate `testConnection` tests
- testConnection: fix a typo in error message
- datasource-invoke: handle sync errors

/to @ritch please review