added functionality to get a contact resource by id via the contactRepository class with tests