Prevent the binary marshalling test blocking when the output is short

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