Unit tests around reading frame from buffer while buffer has data.