fix test services done case and getConnected boolean test