Constructing classes in paginator test