Fixed template directory path in tests.py.