Update prepareLogFn tests