Login/logout: correction of unit tests