tests: set netdev event_callback
before calling init
#18745
Merged
event_callback
before calling init
#18745