Make tests a little more robust by disabling threading