Fix ByteVector sizes in some test cases

The specified sizes were too large and read outside the allocated memory area.