tests for array each, reverse_each, map