common: add test for connection with keyFilePath.

I need to work on less scary PRs. Sorry! Will annotate.
It'd be good to be consistent across the repo.