#5: Added functional tests for the template views.