Which test are you referring to?
The tests I attached to the comment above.
That's not possible. You need to use either the length of the track or the EOT meta event to find out where a track ends.
Well, okay, it reads up to the track length of bytes and then tries to read another track, etc. But still, with some tests you can easily check that it doesn't really care about EOT event, or about the stream being cut shorter than what the track length advertises. It succeeds nonetheless in most cases, so there's no validation to be done here.