Added a simple test that catches the descending order problem.