Aggressive cows

can u explain the sample test case?