Fixing map-reduce unittests, sometimes cluster is not yet fully up when tests start

Fixed #3065