Fixing undefined value for json in client method when message names end with Out or Output.

I've modified client.js and package.json.  I've added several new files under the test directory.  With this change, we can easily add generic tests quite rapidly.