mediator tests