Reworked in Memory Dao Topology Test

We changed the model and then we fit the test
the new way of setting the object.
The add methid for EndPoint in Element
and the new Link class
will automatically assign Element and Link to EndPoint