network: add test code