ncm-named: clear warnings before unittesting

Fixes unittests on fedora