core: Fix Device and Network Unit Test

Change-Id: Ifde7b681e94328f4b6c0a63cff48bc588c0cddb6
Bug-Url: https://bugzilla.redhat.com/903572
Signed-off-by: Muli Salem <msalem@redhat.com>