[Templating] Added tests for the DelegatingEngine.
[Templating] Made DelegatingEngine::getEngine() public.