common: add test for connection with keyFilePath.

I need to work on less scary PRs. Sorry! Will annotate.
Just switched this style to match the style used throughout the rest of this file. Though, in a future PR, I wouldn't mind doing a sweep to use the following style:

```js
callback(err);
return;
```