content repository refactored and little fixes in applicant/user mockito tests