Add flushBuffer to response mock.