Overriding templates in testing