updated test code
added "condense" method to reduce (nested) arrays to simple arrays
adjusted code to use condense method
Merge branch 'feature/modify-send-method-to-allow-arrays' into develop