make basic pagination for videos, and a unit test for it