network: update test code ; use new style of dbus error handle
add the makefile (only used for check compiler error)