Add log rotate to the testing framework