Move assert.doesNotEmit to assert2 module.
Refactor out send function.