implement tests using mockito