updated unit test for Buffer module