tested mediator pattern