Fixing auth logic errors while running rspec tests