fixed next batch of tests for ndarray