Fix django tests