Update unit testing in controller of user logout