Test empty list behavior