CMS-2192 Templates API design.
Unit tests for domain classes.