added injector tests and improved mediator/view handling