Added unit cases for virtual network.