cdx: fix the 'yield nothing' case when limit==1
add additional test case for limit==1 and reverse=True,
as limit is optimized out