Refactor sqlRepo tests