PasswordChangeRequired lookup and session serialization in tests fixes

Fixes to resolve issues with looking up password_change_required records and session serialization in tests.
- Tested with django 1.5, 1.6, 1.6.2).