added setRoot method to set root of template files.
created tests using setRoot.
added setting parent templates with respect to current template file.
block name also gets rooted.