added hasNetwork tests