reset stored credentials when call client.logout()
Merge pull request #1505 from ticosax/test.client.logout

reset stored credentials when call client.logout()