Merge "Add tests to verify app has network access in onResume." into tm-dev