unit testing LogPersistance