Added flush buffers and a test case, #78