removed mockito from tests and used handrolled mocks instead