fix it tests with mockito