Issue #3305611 by joachim, smustgrave, xjm, longwave, danflanagan8, quietone: Convert TokenReplaceTest to a kernel test