moved debug fn out to own module, added tests
improved coverage of baserollingfilestream