test Array and ArrayBuffer