tests and mockito