Testcases related to buffer.