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

I've modified 1 file, and added 5 new files under the test directory.  With this change, we can easily add generic tests quite rapidly.