Modify flashBufferFlush() and added test code for flash buffer