While I haven't worked through that test in detail, I suspect that at some point you're getting sign extension which is causing two values which you expect to be the same, to not compare as equal. If you pass in explicitly typed values to Serial.readBytesUntil using the types defined in the method signature, do you get the same problem?