add testing for log substitution from @brutaldev