fixes for @eteq's comments.  Restore internet if astropy.test() is run