Changes for #390 Broken TestNG several tests report

This should fix problem #390 
I'm not the owner of this method I just modified it, but the reason is because it is used in the unit test