add test case for rotating file handler