SLING-3820 - applying Marius Petria's patch for fixing ITs

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1615933 13f79535-47bb-0310-9956-ffa450edef68
SLING-3820 - fixed ITs for forward and reverse replication

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1615938 13f79535-47bb-0310-9956-ffa450edef68