common: add test for connection with keyFilename.