New tests for testing output and return values
of "dispatch" and "respond"
Merge branch 'output-tests'