Fix unit test 'None type has no attribute hw_addr' error