added mediator unit tests