fix test_net for refactor