added tests for the array functions that are defined in terms of transducers