starting a logout feature

also bettering some tests