Fixed pagination test
Fixed distinct