Added unit tests for network list.
Added unit test for query_resource method.