added extra test for checking array