ndim not ndim of array
add tests, but failing