added test for no public ssh keys
added test for set hostname and case where hostname is not found