lock down and speed up a test that keeps randomly failing on travis