This is again my mistake, it should be
if (!cvs.isEmpty()) { passed++; } else { failed++; }
Right now I'm writing why it's happening.