UDPATED completed the logout and its unit tests.