testing matrix returned arrays