Bugfix for update_port: dealloc port.ip_addresses

* updated tests to check for deallocate as well