note that test_connection is used in the new_vm method, which means you would silently update the pub_key without noticing at all.