test: check that writing over a ring boundary works ok

This test currently fails.

Signed-off-by: David Scott <dave.scott@citrix.com>
pipe: correct reading across the ring boundary

This fixes the unit test.

Signed-off-by: David Scott <dave.scott@citrix.com>