new testbench for the new version that sends index and variable buffer size