Can you add a test that verifies that a query with distincts is valid when there are no order_by expressions?