Relax a timing sensitive test that fails occasionally on travis-ci