Added the replicatedmap stabilizer test

why is there 2 clearReplicatedMapIfNeeded ?