A work in progress.  Adding tests and comments and more complete example...

1) This example works.  

2) Change the method('generateIntegers') 

to something invalid and see what happens .

3) original request 
      .method('generateStrings')
      .params({n:4,length:11})

  tests change
  
      .method('generateStrings')
  to
      .method('generate2Strings')

  expected results
  return an error code - no method of this name

  Actual results
  returns an array of 4 integers