Modify set-up of test cases

* Move the sendAndReset() function to it() function, because this
  is that function which will be tested