fisrt migration for the next step work on enlinkd

Refactored tests so that everythink is simple
to migrate linkd unit test to enlinkd unit test