Add a few tests

Add tests for Client.Login and urlEncode. More tests will be added.