Removed unnecessary import.
Added a test case for "if" statements in templates.