Add implementation of sign out user and write test to cover it.