Wrote some proper tests using vows. Also exposed the traversal function
in the template object