add appointmentrepository and unit test for it - not working properly yet