Fixed bug when no templates passed
Fixed tests