Fix buggous test on list