improve repository test