[#1667] Find test success state in full stack.


Problem description
===================

The testcase only looks for success state in the first 6 stack.

For testcase with big inheritance tree, the testcase stops looking till the end.


Why we got into this (5 whys)
=============================

Stupid code.


Changes description
===================

Code was updated to look in full stack.

Variable name for storing sucess result was renamed something else than "success" to avoid overlaping the the actual success variable. 


How to try and test the changes
===============================

reviewers @alibotean 

Check the changes.

There is no explicit test for this code, but it should be already checked in any test.