[server][test] Replace _ with \ not to match patterns without a underscore such as testABC.