Add a unit test for the connection When we consumed all packets in a buffer, try to get more data instead of failing right away.