Update tests to work offline

There are still some that we cannot force to work offline but this improves a lot of things.