Add tests related to IFNode and Replication


1. fix Tests related to IF Node and recursion and add a few more
2. Review tests related to replication and failing tag to the failing tests