Improved randomly failing test in Travis