added tests
added a test for ssh logout
Merge pull request #145 from czardoz/master

tests and documentation