fixed whitespace
added lost connection test