Fix tests when custom user model is used