some fix

* remove "id" attribute from NetworkGateway
* add unittests

Change-Id: Ide7aa7a7d268a0f93cf6a93f83573196d678143c