NH-3428 Unit test to reproduce issue on SQL2005 and above.

This test runs a query which is distinct and ordered paged past page 1.
NH-3428 Added a check to see if the sortexpression is the alias
Merge pull request #197 from IDDesigns/NH-3428