tests for Array.slice(), IntArray.slice(), etc