New loooong test for replica sets. Other fixes
typo
New test
Bookkeeping