Fix email verification code and tests
Fix broken tests for IdentitiesRegister and SessionsAuthenticated