Adds test to assert that we can do a DISTINCT and renamed columns and still ORDER BY the old name