test buffer stuff