BUGFIX: in DefaultTemplate where field and relationship templates were swapped

added a regression test for this issue