move server.{ch} to spec/server/
add spec for "Failed to connect to ..."