fixed test testConnectionFailingPassesErrorToDelegate