added mockito tests