A logical  bug

A logical bug in test