[test][buffer][fix] Fix compilation errors in robustness test for buffer