minor fix to the logic taking care of detecting a 'buffer full' condition

and one more test