Fix : Usage of test function in loop should be avoided - (SensioLabsInsight)