updated tests and error in array processing