Added meaningful unit tests for ordered select.