Network: refactor tests, add test for depth 2.