add test case for buffer Reset