Buffer Unit test