made the tests working with django < 1.4