Tweaking Stream.collect() test to troubleshoot intermittent failure.