cover Mediator with tests
jshint error