Testing with sessions in Django is broken. Implement some work around code