Changed tests to work on older DJango versions.