Make specs transactional.
Skip models that don't have any records.
Use find_each to select records.
Add spec for LIMIT parameter.
Fix specs.