Added tests for buffer module