network: add nm object destroy wrapper
network: update test code