added more tests for ndarray