Added tests to switch custom template.