BZ-881036 - Infinite Loop limit in Guvnor test scenarios

(cherry picked from commit afdaa47320e2e0deae82ddc2085079d6943cd1c9)
BZ-881036 - Infinite Loop limit in Guvnor test scenarios

(cherry picked from commit 1caf9e22ad970c7e3b37c93984acc421e07a23c5)