Added new tests and fixed logout feature so only logged in users can logout.