The template engine does not support appending to arrays with []. Try using array append {set new_array = $new_array|array_append($test:item)}
See the documentation for arrays for more info http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/array_handling