Locate the whole test of internet test in a single function. Add Windows test, too.