fixed templatecontroller test