Fixed problem with Devise and unit tests, added more tests