fixing tests for django 1.4