Fixing tests (add login to the view tests