Client testing

 * Minor spelling and doc fixes to client module
 * Unit testing client module.
Pylint fixes.
Merge pull request #9542 from cachedout/unit-tests

Unit tests