unittests: adapt netdev_dummy for netdev event handlers

unittest related follow-up to #2163.