Connection Delete bug fix

The connections are bidirected. When the user deletes a connection only
the connection in the first direction was deleted. Now it's fixed.
The test that tests the deleting of connections was not correct too. I
fixed that too