Adding template routes and test