Refactored tests to use mock object for syntax tree,
Add method for rendering an entire syntax tree. Add specs.