Fix user unit tests.
Fix DeprecationWarning: django.conf.urls.defaults is deprecated; use django.conf.urls instead