Speed up tests on Windows

This reduces the test duration from ~13 seconds to ~7 seconds on Windows (Python 2.7).