Added first unit tests for TemplateGenerator::_Replace().