CA-107636: Fixing the utility code for testing a wrapped byte value against a min/max number of bytes.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>
CA-107636: Updating unit tests for wrap fix.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>