Add tests for nova cfg connect/keepalive

- Add connect and keep alive test cases.