Fix an issue that tests are failing by parallel execution on Travis