Implemented test for random-access read buffer; bugfixes.