fix bug when calling Advance on new reader
improve coverage of the mock package
improved test coverage