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

Change-Id: Ib73537c95107b1b8d0a223abc053794ad24fcbf5