Logging tests need to invoke the log command on MacOS but the build.psm1 log command is interfering with it. The fix is to rename the function in build.psm1 to Write-Log.