Add functional test for ag and vnet.