refactored tests, new log out spec