Unit test setup + pagination bug