Fix logout with rspec tests