Fixed queue size in test. Added unit tests for target leader change.
Merge pull request #23 from sindicetech/cdcr-leadertarget-tests

Fixed queue size in test. Added unit tests for target leader change.