Generic repository test