add tests for connect_to_remote. SSL is Faulty