common: add test for connection with keyFilePath.

I need to work on less scary PRs. Sorry! Will annotate.