Added test for createNetwork