unit test for WriteReadRatioLogger