Fix repository service test