add tests. fix for wrong response when custom helper return Array and Array[1]=0