Unit tests for _renderMachineToken.