Fix buffer overrun bug, write only how much data the user wants, not how much we stored (with the extra header info)
Adding new RBFM test case