first test of buffer and sampler