flatMapAsync test was non-deterministic