added new array test and fix array bug