You need to clean database after your test cases, you can do it simply with only one call. type - 'truncate' - DEFAULT: use truncate to clear all tables in database and restart sequences - 'delete' - ...
Offset pagination has performance issues on large datasets. Cursor pagination provides stable and efficient pagination without skipping or duplicating records.