Add functional test for known-hosts verification