added array processing
added array tests