adds PhotosRepository and related tests