Added test for login sessions on client.

Wrote a test for parsing the user from the server.