Fix logout hook test
Clean up