Add CHECK_STREAM_RECORD unit test utility function.