Added the replicatedmap stabilizer test

The check is needed because otherwise the batch can't be aborted. If there is no check, only in the outer while loop the test can be ended and with a big batch this could be problematic.

I need to think about the sleep.