Added tests for Array.sort