Relations defined and pagination test added