Testing the connection exception