Add delays to make tests pass more consistently on Travis