tests: fix netdev test

Quick-fix and follow-up to #1492