logout, stated writing tests