fix mock repo to take list in constructor