Fixed tests for python3.3 and django 1.6.