Handle invalid context exceptions with output handler
Added unit test for contextValidate error handling
Fixed test
Create a new dispatcher for every test in setUp.
Merge pull request #1286 from gomezd/context

Handle invalid context exceptions with output handler