added test for buffer clearing
added all