improved repo test