Test registration as already existing user and fix a crash
Add the message middleware, it is required for the testsuite
Handle user.last_login is None (happens with Django 1.7)