some corrections for tests, users controller and user model