better expires, handle rotation, more logsync during test