Make tests work on slow machines