Unit tests

 * Minor spelling and doc fixes to client module
 * Unit testing client module.