Add test for buffer usage