Changed string comparison tests to use assertSequenceEqual instead of assertEqual
Added support for nests within template.py
Extracted incementTab and decrementTab functions