Add tests for inbound and outbound connectors.
Merge and revert test changes from d432fcd1e (deleted test was meant to be there, two new tests are superceded by more complete set of tests for the inbound and outbound connectors).