Add test coverage for background networks. am: e14d49ad59 am: 815bbf5678
am: 52e5564427

Change-Id: Ibbb14bd30b9b18799d301f023eb6770affbca518