Fix repository test