Fixed test cases.  
Fixed bug in sorted non unique array tables.