mockito helpers + tests refactoring