Added tests for new ordering feature.