baseparse: Add unit test for short reads

Before the previous commit, buffer pulling count and chain function call
counts are not equal due to EOS. After the modification, these counts
are equal so unit test is passing.

gstreamer/gstreamer!33
gstreamer/gstreamer#294
3 jobs for master in 6 minutes and 38 seconds (queued for 15 minutes and 1 second)