add tests for network module