add test for array.length and init