Fix concurrency tests on travis