Refactor repository mock to use test fixtures.