Fix compilation of tests (remove JUnit and add mockito to dependencies)